-- This module provide the main controller of whole recommendation process.

module MineFx where

import Data.Time
import Bars
import TableFunction

-- As the first step it should fetch data for the last two time intervals. 
-- That should fetch from external DB bar data. Most probably from MySql backend.

fetchData :: (UTCTime, UTCTime) -> BarArray
fetchData (fd, td) = undefined

-- The next big step is to provide a target probability distribution.
-- For given bar arrays we should construct Pdf's to be feed into fokker engine

makePdfs :: [BarArray]->[TFunction]
makePdfs xs = map getDistribution xs

-- now we should convert TFunctions into vectors to feed it in 
